package com.fyzk.model;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

/**
 * @author yangfeng
 * @create 2018/10/11 15:24
 * @Describe
 */
public class DocumentaryViewModel extends ViewModel {

    private MutableLiveData<Integer> mLoginLiveData;
    private MutableLiveData<Integer> mGotoBaskInASingle;

    public DocumentaryViewModel() {
        this.mLoginLiveData = new MutableLiveData<>();
        mGotoBaskInASingle = new MutableLiveData<>();
    }

    public void onRequestLogin() {
        getLoginLiveData().setValue(0);
    }

    public MutableLiveData<Integer> getLoginLiveData() {
        return mLoginLiveData;
    }

    public MutableLiveData<Integer> getGotoBaskInASingle() {
        return mGotoBaskInASingle;
    }

    public void onRequestGotoBaskInASingle() {
        getGotoBaskInASingle().setValue(1);
    }
}
